DRIVER_OF_DIR			= $(DRIVER_DIR)/of
DRIVER_TTY_DIR			= $(DRIVER_DIR)/tty
DRIVER_SPI_DIR			= $(DRIVER_DIR)/spi
DRIVER_NET_DIR			= $(DRIVER_DIR)/net
DRIVER_BASE_DIR			= $(DRIVER_DIR)/base
DRIVER_SERIAL_DIR		= $(DRIVER_DIR)/serial
DRIVER_IRQCHIP_DIR		= $(DRIVER_DIR)/irqchip
DRIVER_CLOCKSOURCE_DIR  = $(DRIVER_DIR)/clocksource
DRIVER_GPIO_DIR  		= $(DRIVER_DIR)/gpio
DRIVER_PINCTRL_DIR		= $(DRIVER_DIR)/pinctrl

obj-y += $(DRIVER_DIR)/char_dev.o
obj-y += $(DRIVER_DIR)/timer.o
obj-y += $(DRIVER_DIR)/block_dev.o
obj-y += $(DRIVER_DIR)/test_platform.o
obj-y += $(DRIVER_DIR)/m25pxx.o
obj-y += $(DRIVER_DIR)/test_module.o
obj-y += $(DRIVER_DIR)/test_mmap.o

include $(DRIVER_OF_DIR)/Makefile
include $(DRIVER_TTY_DIR)/Makefile
include $(DRIVER_SPI_DIR)/Makefile
include $(DRIVER_NET_DIR)/Makefile
include $(DRIVER_BASE_DIR)/Makefile
include $(DRIVER_SERIAL_DIR)/Makefile
include $(DRIVER_IRQCHIP_DIR)/Makefile
include $(DRIVER_CLOCKSOURCE_DIR)/Makefile
include $(DRIVER_GPIO_DIR)/Makefile
include $(DRIVER_PINCTRL_DIR)/Makefile